﻿#include "FITKAcousticsLoadManager.h"

namespace Acoustics
{
    QList<FITKAcousticsAbstractLoad*> FITKAcousticsLoadManager::getLoadByType(FITKAcousticsAbstractLoad::AcousticsLoadType t)
    {
        QList<FITKAcousticsAbstractLoad*> fs;
        //遍历全部对象
        const int n = this->getDataCount();
        for (int i =0; i< n; i++)
        {
            //类型筛选
            FITKAcousticsAbstractLoad* s = this->getDataByIndex(i);
            if (s && s->getAcousticsLoadType() == t)
                fs.append(s);
        }
        return fs;
    }

}



